package cn.xhy.material.dal.mysql.pojectinfo;


import cn.iocoder.yudao.framework.mybatis.core.mapper.BaseMapperX;
import cn.xhy.material.dal.dataobject.pojectinfo.CustomerProjectDO;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * 客户和项目关系 Mapper
 *
 * @author xhy
 */
@Mapper
public interface CustomerProjectMapper extends BaseMapperX<CustomerProjectDO> {

    default List<CustomerProjectDO> selectListByProjectId(String projectId) {
        return selectList(CustomerProjectDO::getProjectId, projectId);
    }

    default int deleteByProjectId(Long projectId) {
        return delete(CustomerProjectDO::getProjectId, projectId);
    }

}
